<div class="content">
<%=render :partial=>"breadcrumb"%>
    <%if @photos.empty?%>
        <div class="album">    
        <%= image_tag("/stylesheets/"+get_scheme+"/images/noimage") %>
        </div>
    <% end %>
    <% while @i < @photos.size do %>
        <div class="album">
            <% rel = "lightbox" %>
            <% url = image_path(@photos[@i].to_url(:large)) %>
            <% image = image_tag(@photos[@i].to_url(:thumbnail), :id=>"photo_#{@photos[@i].id}", :title=>@photos[@i].title) %>
            <%= link_to image, url, :rel=>rel %>
            <br/>
            <%=link_to _("Edit"), :action=>"edit_photo" ,:id=>@photos[@i], :num=>@i%>&nbsp
            <%= link_to _("Delete"), {:controller=>"admin", :action=>"destroy", :id=>@photos[@i],:album=>@album, :num=>@i},
                                        :onclick => "return confirm(\"#{_('Are you sure you want to delete photo?')}\");",
                                        :class => "desctructive"  %>
            </div>
        <% @i+=1 %>
    <% end %>
</div>